﻿using System;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI.Selection;
using YArchitech.Revit;

namespace ModelChecking.ModelValidation.Commands
{
	public class FilledRegionFilter : ISelectionFilter
	{
		bool ISelectionFilter.AllowElement(Element elem)
		{
			if (elem is FilledRegion)
			{
				FilledRegion elem2 = elem as FilledRegion;
				string text = elem2.GetParameter("填充类型").AsString();
				return text.Equals("图形填充");
			}
			return false;
		}

		bool ISelectionFilter.AllowReference(Reference reference, XYZ position)
		{
			return false;
		}
	}
}
